﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Microsoft.Win32;

namespace Playkanaler
{
    public class Settings
    {
        static RegistryKey key = Registry.CurrentUser.CreateSubKey("SOFTWARE\\Playkanaler");
        public static void WriteReg(string name, object value)
        {
            key.SetValue(name, value);
        }
        public static object ReadReg(string name)
        {
            return key.GetValue(name);
        }
        public static int LastTab
        {
            get { return (int)ReadReg("LastTab"); }
            set { WriteReg("LastTab", value); }
        }
        public static string Path
        {
            get { return (string)ReadReg("Path"); }
            set { WriteReg("Path", value); }
        }
        public static string ProductCode
        {
            get { return (string)ReadReg("ProductCode"); }
            set { WriteReg("ProductCode", value); }
        }

    }
}
